package si.banst.statistika.entitete;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Tecaj implements Serializable {

	private static final long serialVersionUID = 1L;

	private TecajID id;

	private Date datumCasSpremembe;

	private BigDecimal nakupniTecaj;

	private BigDecimal prodajniTecaj;

	private BigDecimal srednjiTecaj;

	public Tecaj() {
		super();
	}

	public TecajID getId() {
		return id;
	}

	public void setId(TecajID id) {
		this.id = id;
	}

	public Date getDatumCasSpremembe() {
		return datumCasSpremembe;
	}

	public void setDatumCasSpremembe(Date datumCasSpremembe) {
		this.datumCasSpremembe = datumCasSpremembe;
	}

	public BigDecimal getNakupniTecaj() {
		return nakupniTecaj;
	}

	public void setNakupniTecaj(BigDecimal nakupniTecaj) {
		this.nakupniTecaj = nakupniTecaj;
	}

	public BigDecimal getProdajniTecaj() {
		return prodajniTecaj;
	}

	public void setProdajniTecaj(BigDecimal prodajniTecaj) {
		this.prodajniTecaj = prodajniTecaj;
	}

	public BigDecimal getSrednjiTecaj() {
		return srednjiTecaj;
	}

	public void setSrednjiTecaj(BigDecimal srednjiTecaj) {
		this.srednjiTecaj = srednjiTecaj;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Tecaj other = (Tecaj) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Tecaj [id=" + id + ", datumCasSpremembe=" + datumCasSpremembe
				+ ", nakupniTecaj=" + nakupniTecaj + ", prodajniTecaj="
				+ prodajniTecaj + ", srednjiTecaj=" + srednjiTecaj + "]";
	}

}
